﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Master.Master" AutoEventWireup="true" CodeBehind="DelHeadAuthority.aspx.cs" Inherits="PresentationLayer.View.DepartmentManager.DelHeadAuthority" %>

<%@ Register src="../mainMenu.ascx" tagname="mainMenu" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style5
        {
            width: 185px;
        }
        
      
        .style8
        {
            width: 72px;
        }
        
      
        .style9
        {
            height: 34px;
        }
        
      
        .style10
        {
            width: 716px;
        }
        
      
        .style11
        {
            height: 32px;
        }
        
      
        </style>

     

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="100%">
    <tr>
        <td style="height:auto;width:200px;vertical-align:top;">

            <uc1:mainMenu ID="mainMenu1" runat="server" />

        </td><td>
       <div style="vertical-align:top;">
        <center><h2><u>Delegate Department Head Authority</u></h2></center>
      

    <table> <tr>
    
    <td height ="50" class="style10">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<asp:Label ID="lblmessage" runat="server" Text="Label" 
            Visible="False" ForeColor="Red" Font-Bold="true" ></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <br />
        </td> 
    </tr></table>
<asp:Panel runat="server" ID="Panel" Height="413px">
      <table style="width: 551px">
      
      <tr>
      <td class="style11">Current Authorized Head</td>
      <td class="style11">
          <asp:Label ID="lblCurauthoHead" runat="server" Text="Label"></asp:Label>
          </td>
      </tr>
      
          <tr>
              <td class="style8">
                  <asp:Label ID="lblEmployeeName" runat="server" Text="Employee Name" 
                      Width="200px"></asp:Label>
              </td>
              <td>
                  &nbsp;
                  <asp:TextBox ID="txtEmpName" runat="server" EnableViewState="true"></asp:TextBox>
              </td>
              <td>
              </td>
              <td>
                  &nbsp;</td>
              <td class="style8">
                  <asp:Button ID="btnSearch" runat="server" onclick="btnSearch_Click" 
                      Text="Search" />
              </td>
              <td></td>
              <td class="style43">
                  <asp:LinkButton ID="btnAll" runat="server" onclick="btnAll_Click">All Employee</asp:LinkButton>
              </td>
          </tr>
          <tr><td></td></tr>
      </table>
    <div style="text-align:center">
    <table style="width: 596px">

   
    
   
   </table>
   </div>
      <%--<table  width="300px" >--%>
   
    <asp:gridview id="GvEmpList" runat="server" autogeneratecolumns="False" 
            Width="549px" CellPadding="4" 
        ForeColor="#333333" GridLines="None" AllowPaging="True" 
           OnPageIndexChanging="GvEmpList_PageIndexChanging" 
                EmptyDataText="There is No Data Available!!" 
                onrowdatabound="GvEmpList_RowDataBound" >        
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
          <columns>
             <asp:TemplateField HeaderText="Sr.No">
             <ItemTemplate>
                <%# Container.DataItemIndex + 1 %>
             </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" />
             </asp:TemplateField>  
        <asp:boundfield datafield="EmpId" HeaderText="Employee ID" >              
              <ItemStyle HorizontalAlign="Center" />
              </asp:boundfield>
        <asp:boundfield datafield="EmpName" HeaderText="Employee Name" >   
      
              <ItemStyle HorizontalAlign="Center" />
              </asp:boundfield>
      
       <asp:TemplateField HeaderText="Assign">
        <ItemTemplate>
         <asp:LinkButton ID="btnselect" Runat="server" OnClick="btnselect_Click" CommandArgument='<%# Eval( "EmpId" ) %>'>Select</asp:LinkButton>
          
        </ItemTemplate>
           <ItemStyle HorizontalAlign="Center" />
      </asp:TemplateField>      

   
       </columns>  
       <EditRowStyle BackColor="#2461BF" />
            <EmptyDataRowStyle Font-Size="Larger" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
     </asp:gridview> 
     
     <table>
     <tr> <td height ="5px" class="style5"> </td></tr>
     <tr>
     <td align="left" class="style5">
         <asp:Button ID="btnDelegate" runat="server" Text="Delegate" 
             Width="127px" onclick="btnDelegate_Click" Height="28px" />
         </td>
     <td>
         &nbsp;&nbsp;</td>
         <td>
             <asp:Button ID="btnRemove" runat="server" 
                 Text=" Remove Authority of current person" Width="239px" 
                 onclick="btnRemove_Click" Height="28px" />
         </td>
     </tr>
   
     </table>
        </asp:Panel>
        </div>
     </td></tr></table>
 
</asp:Content>
